;(function(window) {

  var svgSprite = '<svg>' +
    '' +
    '<symbol id="icon-user" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M502.496 64.544c125.856 0 227.904 100.352 227.904 224.16 0 123.744-102.048 224.192-227.904 224.192s-227.904-100.448-227.904-224.192C274.56 164.864 376.672 64.544 502.496 64.544zM502.496 64.544c125.856 0 227.904 100.352 227.904 224.16 0 123.744-102.048 224.192-227.904 224.192s-227.904-100.448-227.904-224.192C274.56 164.864 376.672 64.544 502.496 64.544zM416.992 587.584l189.984 0c162.592 0 294.368 129.632 294.368 289.536l0 18.656c0 63.04-131.84 65.44-294.368 65.44l-189.984 0c-162.528 0-294.336-0.032-294.336-65.44l0-18.656C122.656 717.216 254.464 587.584 416.992 587.584z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-mima" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M847.36 1024l-675.84 0c-58.368 0-105.984-44.544-105.984-99.84L65.536 500.224c0-55.296 47.104-99.84 105.984-99.84l26.112 0L197.632 301.568C197.632 130.048 337.408 0 509.44 0s311.808 130.048 311.808 301.568l0 99.328 26.112 0c58.368 0 105.984 44.544 105.984 99.84l0 423.936C953.344 979.456 905.728 1024 847.36 1024zM464.896 709.12l0 111.104c0 23.04 19.968 41.984 44.544 41.984s44.544-18.944 44.544-41.984l0-111.104c26.624-14.336 44.544-41.472 44.544-72.704 0-46.592-39.936-84.48-89.088-84.48-49.152 0-89.088 37.888-89.088 84.48C420.352 667.648 438.272 694.784 464.896 709.12zM732.16 298.496c0-116.224-99.84-210.944-222.72-210.944S286.72 182.272 286.72 298.496l0 101.888 445.44 0L732.16 298.496z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '<symbol id="icon-querenmima" viewBox="0 0 1024 1024">' +
    '' +
    '<path d="M803.704 382.838667l-1.506667 0 0-71.406667c0.413333-6.689333 0.686667-13.242667 0.686667-19.8 0-77.96-30.446667-151.14-85.606667-206.3-55.16-55.022667-128.613333-85.333333-206.713333-85.333333S359.012 30.309333 303.852 85.469333s-85.606667 128.34-85.606667 206.302667l0 91.066667 2.046667 0c-79.046667 0-143.36 64.169333-143.36 142.946667l0 355.265333c0 78.913333 64.313333 142.946667 143.36 142.946667l583.412 0c79.053333 0 143.36-64.173333 143.36-142.946667L947.064 525.785333C947.064 446.872 882.757333 382.838667 803.704 382.838667zM284.058667 291.632c0-124.653333 101.58-225.96 226.506667-225.96s226.513333 101.442667 226.513333 225.96c0 5.326667-0.14 10.786667-0.546667 16.249333l-0.14 1.090667 0 73.593333L284.058667 382.565333 284.058667 291.632zM754.012 612.758667 478.205333 880.224c-12.693333 12.293333-32.9 12.02-45.326667-0.68l-133.666667-137.893333c-12.286667-12.706667-12.013333-32.906667 0.68-45.333333 12.7-12.293333 32.906667-12.013333 45.193333 0.68l111.413333 114.826667 252.725333-245.08c12.693333-12.286667 32.906667-12.013333 45.193333 0.68C766.978667 580.265333 766.572 600.465333 754.012 612.758667z"  ></path>' +
    '' +
    '</symbol>' +
    '' +
    '</svg>'
  var script = function() {
    var scripts = document.getElementsByTagName('script')
    return scripts[scripts.length - 1]
  }()
  var shouldInjectCss = script.getAttribute("data-injectcss")

  /**
   * document ready
   */
  var ready = function(fn) {
    if (document.addEventListener) {
      if (~["complete", "loaded", "interactive"].indexOf(document.readyState)) {
        setTimeout(fn, 0)
      } else {
        var loadFn = function() {
          document.removeEventListener("DOMContentLoaded", loadFn, false)
          fn()
        }
        document.addEventListener("DOMContentLoaded", loadFn, false)
      }
    } else if (document.attachEvent) {
      IEContentLoaded(window, fn)
    }

    function IEContentLoaded(w, fn) {
      var d = w.document,
        done = false,
        // only fire once
        init = function() {
          if (!done) {
            done = true
            fn()
          }
        }
        // polling for no errors
      var polling = function() {
        try {
          // throws errors until after ondocumentready
          d.documentElement.doScroll('left')
        } catch (e) {
          setTimeout(polling, 50)
          return
        }
        // no errors, fire

        init()
      };

      polling()
        // trying to always fire before onload
      d.onreadystatechange = function() {
        if (d.readyState == 'complete') {
          d.onreadystatechange = null
          init()
        }
      }
    }
  }

  /**
   * Insert el before target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var before = function(el, target) {
    target.parentNode.insertBefore(el, target)
  }

  /**
   * Prepend el to target
   *
   * @param {Element} el
   * @param {Element} target
   */

  var prepend = function(el, target) {
    if (target.firstChild) {
      before(el, target.firstChild)
    } else {
      target.appendChild(el)
    }
  }

  function appendSvg() {
    var div, svg

    div = document.createElement('div')
    div.innerHTML = svgSprite
    svgSprite = null
    svg = div.getElementsByTagName('svg')[0]
    if (svg) {
      svg.setAttribute('aria-hidden', 'true')
      svg.style.position = 'absolute'
      svg.style.width = 0
      svg.style.height = 0
      svg.style.overflow = 'hidden'
      prepend(svg, document.body)
    }
  }

  if (shouldInjectCss && !window.__iconfont__svg__cssinject__) {
    window.__iconfont__svg__cssinject__ = true
    try {
      document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>");
    } catch (e) {
      console && console.log(e)
    }
  }

  ready(appendSvg)


})(window)